﻿<Window x:Class="Cratos.Generator.ApplicationShell"
				xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
				xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
				xmlns:local="clr-namespace:Cratos.Generator"
				Title="Cratos Generator" WindowStartupLocation="CenterScreen" Loaded="OnWindowLoaded"
				Height="768" Width="1024">
	<Window.CommandBindings>
		<CommandBinding Command="ApplicationCommands.Close"	
										Executed="OnCloseCommand" CanExecute="OnCloseCommandCanExecute" />
		<CommandBinding Command="{x:Static local:ApplicationShell.NewProjectCommand}"
										Executed="OnNewProjectCommand" CanExecute="OnNewProjectCommandCanExecute" />
		<CommandBinding Command="{x:Static local:ApplicationShell.OpenProjectCommand}"
										Executed="OnOpenProjectCommand" CanExecute="OnOpenProjectCommandCanExecute" />
	</Window.CommandBindings>

	<DockPanel>
		<local:CratosMenu x:Name="m_CratosMenu" DockPanel.Dock="Top"/>
		<local:CratosToolbar x:Name="m_CratosToolbar" DockPanel.Dock="Top" />

		<Border DockPanel.Dock="Bottom" BorderBrush="Blue" BorderThickness="3" CornerRadius="6">
			<StatusBar Height="28" VerticalAlignment="Bottom">
				<StatusBarItem DockPanel.Dock="Right" BorderBrush="Blue" BorderThickness="2,0,0,0">
					<TextBlock Text="{Binding Version}" />
				</StatusBarItem>
				<StatusBarItem x:Name="m_Status" DockPanel.Dock="Right" ToolTip="Server offline" >
					<Image x:Name="m_StatusImage" Source="Images/disconnect.png" Visibility="Visible"/>
				</StatusBarItem>

				<StatusBarItem>
					<TextBlock Text="{Binding StatusText}" />
				</StatusBarItem>
			</StatusBar>
		</Border>

		<TabControl x:Name="m_MainTabControl" Grid.Column="2" Margin="5 0" />
	</DockPanel>
</Window>
